<template>
  <div>
   <div class="list" ref="wrapper">
    <div>
      <div class="cityLocation">
        <div class="location">历史记录</div>
        <div class="button1"
             v-for="ite of historylist"
             :key="ite.id"
        >
          {{ite.name}}
        </div>
      </div>
      <div class="cityHot">
        <div class="hot1">热门推荐</div>
        <div class="button1"
           v-for="item of hot"
           :key="item.id"
        >
          {{item.name}}
        </div>
      </div>
    </div>
  </div>
  </div>
</template>
<script>
export default {
    name : "ScenicHistory",
    data () {
      return {
       historylist: [
         {
           id: '001',
           name: '热门景点'
         },
         {
           id: '002',
           name: '秋游景点'
         },
         {
           id: '003',
           name: '家庭出行景点'
         }
       ],
      hot: [{
        id: '001',
        name: '赏秋之地'
      },
        {
          id: '002',
          name: '十大值得游玩的地方'
        },
        {
          id: '003',
          name: '家庭秋游'
        },
        {
          id: '004',
          name: '情侣蜜月之旅'
        },
        {
          id: '005',
          name: '纪念日'
        },
        {
          id: '006',
          name: '来一场说走就走的旅行吧'
        }
    ]
     }
    }
  }
</script>
<style scoped>
  .list {
    position:absolute;
    left: 0;
    top:72px;
    overflow: hidden;
    right: 0;
    bottom: 0;
  }
  .location {
    line-height: 28px;
    background-color:rgba(0,0,0,.2);
    color: white;
    padding-left:5px;
  }
  .button1 {
    line-height: 30px;
    border: 1px solid #7e8c8d;
    padding: 7px;
    text-align: center;
    margin: 5px 5px;
    border-radius: 6px;
    display: inline-block;
  }
  .hot1 {
    line-height: 28px;
    background-color:rgba(0,0,0,.2);
    color: white;
    padding-left:5px;
  }
</style>
